@import 'stylesheets/globals.scss';

.heading {
    font-size: 14px;
    margin-top: 0;
    padding: 8px;
    padding-left: 10px;
    background-color: $blue;
    color: $white;
}

.segmentItems {
    font-size: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

.keyValue {
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;

    .copyIcon {
        display: none;
        cursor: pointer;
        margin-left: 4px;
        color: inherit;
        opacity: 0.6;
    }

    &:hover .copyIcon {
        display: inline-block;
    }
}

.video {
    width: 100%;
    height: 100%;
}

.image {
    width: 100%;
    height: 100%;
}

.audio {
    width: 100%;
}

.segmentItems table,
.segmentItems th,
.segmentItems td {
    font-size: 14px;
    border: 1px solid #ddd;
}

.segmentItems th,
.segmentItems td {
    padding: 4px;
    text-align: left;
}

.buttonContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button {
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    margin-bottom: 15px;
    background-color: $blue;
    padding: 3px 13px;
    border: none;
    color: $white;
    line-height: 28px;
    outline: 0;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;

    &:hover,
    &:focus {
        background-color: $darkBlue;
    }
}

.loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.center {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    @include transform(translate(-50%, -50%));
}

.nestedPanel {
    margin-right: -10px;
    transition: all 0.3s ease;
}

.nestedPanelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-left: 1px solid transparent; 
    background-color: $blue;
    color: $white;
    cursor: pointer;
    padding-right: 4px;
    
    &.expanded {                         
      border-left-color: #e3e3ea;
    }
  }

.expandButton {
    display: inline;
    padding: 8px;
    font-weight: 500;

    &.expanded {
        font-weight: 600;
    }
}

.refreshButton {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    font-size: 16px;

    &:hover {
        color: #333;
    }

    &:disabled {
        color: #ccc;
        cursor: not-allowed;
    }
}

.nestedPanelContent {
    padding: 0  0 8px 0;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.segmentContainer {
    border-left: 1px solid #e3e3ea;    
    border-bottom: 1px solid #e3e3ea;
    margin-bottom: 16px;
  }